<?php

$this->breadcrumbs = array(

    'Flash ads'

);

?>

<div class="onecolumn">

    <div class="header">

        <span>List flash ads</span>

    </div>

    <div class="clear"></div>

    <div class="content">

        <?php $this->widget('zii.widgets.grid.CGridView', array(

            'dataProvider'=>$model->search(),

            'filter'=>$model,

            'columns'=>array(

                array(

                    'name' => 'block_id',

                    'header' => 'Image',

                    'type' => 'raw',

                    'value' => 'CHtml::image(ImageHelper::thumbAds(75, 75, $data->image), "thumb", array("width" => 75))',

                ),

                array(

                    'name' => 'url',

                ),

                

                array(

                    'class'=>'CButtonColumn',

                ),

            ),

        )); ?>

    </div>

</div>

